package com.zte.warehouse.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class SingleWarehouse {
    //插入数据库数据
    private Integer id;
    private String cName;
    private String phone;
    private String cAddress;
    private String state;
    // @DateTimeFormat: 前端转后端的时间格式化
    // @JsonFormat: 后端转前端的时间格式化
    // @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd hh-mm-ss")
    private Date creationTime;
    private Double wMoney;//详情
    private String details;

    private Integer usre;//负责人
    private Integer users;//创建人
    private Integer province;
    private Integer city;
}
